#ifndef TYPEDEFS_H_
#define TYPEDEFS_H_

#include "bsp.h"
#include "mrfi.h"
#include "nwk_types.h"
#include "nwk_api.h"
#include "nwk.h"

typedef uint8_t zone_t;
// TODO: how many bytes does the compiler give the enum? (I hope only 1)
typedef uint8_t ventStatus_t;
typedef uint8_t sleepTime_t;
typedef uint8_t battLife_t;
typedef uint16_t temp_t;
typedef float error_t;

typedef struct
{
	linkID_t linkID;
	zone_t zone;
	ventStatus_t ventStatus;
	sleepTime_t sleepTime;
	battLife_t battLife;
	uint8_t timeLastSeen;
} RCR_t;

typedef struct
{
	linkID_t linkID;
	zone_t zone;
	temp_t temp;
	temp_t previousTemp;
	float integral;
	sleepTime_t sleepTime;
	battLife_t battLife;
	error_t error;
	uint8_t timeLastSeen;
} RTS_t;

#endif /*TYPEDEFS_H_*/
